//
//  WiteBoxAppDelegate.m
//  WiteBox
//
//  Created by John Blanco on 6/26/09.
//  Copyright Effective UI 2009. All rights reserved.
//

#import "WiteBoxAppDelegate.h"
#import "WiteBoxViewController.h"
#import "WiteBoxStyles.h"

@implementation WiteBoxAppDelegate

- (void)applicationDidFinishLaunching:(UIApplication *)application {
    window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
	
    // Override point for customization after application launch
	witeBoxViewController = [[WiteBoxViewController alloc] init];

	// UINavigationController
	navController = [[UINavigationController alloc] initWithRootViewController:witeBoxViewController];
	navController.navigationBar.tintColor = [WiteBoxStyles navTintColor];
	
	[window addSubview:navController.view];
    [window makeKeyAndVisible];
}

- (void)dealloc {
	[navController release];
	[witeBoxViewController release];
    [window release];
    [super dealloc];
}

@end
